
/**
 * 饿汉单例设计模式
 * @author Lenovo
 *
 */
public class Singleton {
	private static Singleton singleton = new Singleton();
	
	//构造方法私有化
	private Singleton() {
		
	}
	
	public static synchronized Singleton getSingleton() {
		return singleton;
	}
}
